home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12428 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  953 b 

  1. Path: ix.netcom.com!news
  2. From: egurevit@soleil.acomp.usf.edu (Eric Gurevitz)
  3. Newsgroups: comp.lang.c
  4. Subject: Correct input from user.
  5. Date: Sat, 30 Mar 1996 14:21:45 GMT
  6. Organization: Netcom
  7. Message-ID: <4jjfur$5fu@dfw-ixnews6.ix.netcom.com>
  8. NNTP-Posting-Host: tam-fl2-25.ix.netcom.com
  9. X-NETCOM-Date: Sat Mar 30  8:20:11 AM CST 1996
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. I am writing for school. The program is to take the interest rate,
  13. number of years, and principal amount and return the monthly payment.
  14. For each of the things I ask the user I am using a scanf and storing
  15. it as a float. I would like to make a loop so that is the user types a
  16. lettter when asked for a number it prints an error message and tell
  17. them to try again. I am using GCC and writing it in C. Thnaks for the
  18. help. 
  19.  
  20. Eric Gurevitz
  21. egurevit@soleil.acomp,usf.edu
  22.  
  23. Eric Gurevutz
  24. egurevit@soleil.acomp.usf.ed
  25.  
  26. Be cure to check my home page at:
  27. http://www.bsn.usf.edu/~gurevitz
  28.  
  29.